import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { rules } from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '题库名称',
    align: "center",
    dataIndex: 'name'
  },
  {
    title: '题库分类',
    align: "center",
    dataIndex: 'bankType'
  },
  {
    title: '创建日期',
    align: "center",
    dataIndex: 'createTime',
  },
  {
    title: '更新日期',
    align: "center",
    dataIndex: 'updateTime',
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '题库名称',
    field: 'name',
    component: 'Input',
  },
  {
    label: '题库分类',
    field: 'bankType',
    component: 'Input',
  },
  {
    label: '备注',
    field: 'remakr',
    component: 'Input',
  },
  // TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
